kind: Suite
apiVersion: test.gatekeeper.sh/v1alpha1
metadata:
  name: d8-allow-privileged
tests:
  - name: pod-security-standards-baseline
    template: ../../templates/security/allow-privileged.yaml
    constraint: constraint_pss_baseline.yaml
    cases:
      - name: example-allowed
        inventory:
          - ../common/test_samples/ns.yaml
        object: test_samples/pss_baseline/example_allowed.yaml
        assertions:
          - violations: no
      - name: example-disallowed
        inventory:
          - ../common/test_samples/ns.yaml
        object: test_samples/pss_baseline/example_disallowed.yaml
        assertions:
          - violations: yes
      - name: example-disallowed
        inventory:
          - ../common/test_samples/ns.yaml
        object: test_samples/pss_baseline/example_disallowed_ephemeral.yaml
        assertions:
          - violations: yes
